package cn.fch.gotrip.service;

import cn.fch.gotrip.entity.Hotel;
import cn.fch.gotrip.entity.HotelTheme;
import cn.fch.gotrip.entity.Room;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * @program: gotrip
 * @description:
 * @CreatedBy: fch
 * @create: 2023-01-18 23:56
 **/
public interface HotelService {
    boolean addHotel(Hotel hotel);

    boolean addHotelRoom(Room room);

    boolean updateHotel(Hotel hotel);

    boolean updateRoom(Room room);

    Hotel updateHotelHtml(Integer code, Integer id, String html);

    PageInfo<Hotel> queryAllHotelByThemeId(Integer themeId, Integer pageNum, Integer pageSize);

    Hotel queryHotelById(Integer id);

    List<HotelTheme> queryAllHotelTheme();

    Map<String, Object> queryBedAndBreakfast();

    List<Room> queryRoomByHotel(Integer id);
}
